import React, { Component } from 'react';
import {HashRouter,Switch,Route} from 'react-router-dom';
import StoreList from './page/StoreList';
import Cart from './page/Cart';

class Router extends React.Component{
    render(){
        return(
            <HashRouter>
                <Switch>
                    <Route path="/Cart" component={Cart}></Route>
                    <Route path="/" component={StoreList}></Route>
                </Switch>
            </HashRouter>
        )
    }
}
